package chapter16;

import java.util.ArrayList;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * Description:
 *
 * @author liuziyang
 * @create 2019-03-16 22:22
 */
public class ArrayOfGenerics {
    public static void main(String[] args) {
        List<String>[] ls;
        List[] la = new List[10];
        ls = (List<String>[]) la;
        ls[0] = new ArrayList<>();
//        ls[1] = new ArrayList<Integer>();

        Object[] objects = ls;

        objects[1] = new ArrayList<Integer>();


    }

}
